package game.editer.ui;

import game.editer.config.HitDataConfig;
import hx.events.MouseEvent;

/**
 * 击中数据编辑支持
 */
class HitDataInput extends BaseAttributeInput {
	var button = new Button();

	override function onInit() {
		super.onInit();
		button.text = "编辑";
		button.width = 110;
		button.addEventListener(MouseEvent.CLICK, (e) -> {
			EditerStage.attribute.bindEditData("击中数据", this.value, HitDataConfig.ATTRIBUTES);
		});
		this.addChild(button);
	}
}
